<script type="text/javascript">
/**
 * Apply a fix for IE6 images to render PNG alpha transparency.
 *
 * @param {string or Obj} idOrImg ID of the image element or the image element
 *                        itself.
 * Ideally, we would only apply the fix to png files. However, the logo url from
 * the dasher control panel will always return a url to a gif file even though
 * the file content can be png. Since it is safe to apply the png fix to gif and
 * jpeg files, we apply the fix to all images in IE6.
*/
function ie6ImgFix (idOrImg) {
  var arVersion = navigator.appVersion.split("MSIE");
  var version = parseFloat(arVersion[1]);
  if (version == '6.0') {
    var img = typeof idOrImg == 'string' ? document.getElementById(idOrImg) : idOrImg;
    var imgID = (img.id) ? 'id="' + img.id + '" ' : '';
    var imgClass = (img.className) ? 'class="' + img.className + '" ' : '';
    var imgTitle = (img.title) ? 'title="' + img.title + '" ' :
      'title="' + img.alt + '" ';
    var imgStyle = 'display:inline-block;' + img.style.cssText;
    if (img.align == 'left') imgStyle = 'float:left;' + imgStyle;
    if (img.align == 'right') imgStyle = 'float:right;' + imgStyle;
    if (img.parentElement.href) imgStyle = 'cursor:hand;' + imgStyle;
    var strNewHTML = '<span ' + imgID + imgClass + imgTitle +
      ' style=\"width:' + img.width + 'px; height:' + img.height + 'px;' +
      imgStyle + ';' +
      'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader' +
      '(src=\'' + img.src + '\', sizingMethod=\'scale\');\"></span>';
      img.outerHTML = strNewHTML;
    return false;
  }
}
</script>
<a href="{{ site_url }}/{{ colA_value }}.html" rel="Link" id="link" onclick="shareLinkWidget.show();return false;">
  <img src="/static/dcw-images/link.png" onload="ie6ImgFix(this);"/>
  <span>Link to this page</span>
</a>
<div id="le" style="display: none">
  <div>
    <div class="lelabel"> Paste link in <b>email</b> or <b>IM</b>
    </div>
    <div id="leclose">
      <img src="/static/dcw-images/transparent.png" class="iw_close" alt="close"
      onclick="shareLinkWidget.hide();" />
    </div> <!-- end of leclose -->
  </div>
  <div class="leurlinput"><input id="leurl" class="leinput" value="" type="text" /></div>
</div> <!-- End of le-->
